package com.hu.common.constants;

/**
 * @ClassName StringContract
 * @Description 字符串定义类
 * @author 355760
 */
public class StringContract {
    // redis token key
    public static final String TOKEN_KEY = "token:";
    public static final String USER_KEY = "user:";
    // 用户角色关联KEY
    public static final String USER_ROLE = "USER_ROLE";
    // 用户-组织关联关系KEY
    public static final String USER_ORG = "USER_ORG";
    // 角色与模块关联关系KEY
    public static final String ROLE_MODULE = "ROLE_MODULE";
    // 角色与组件关联关系KEY
    public static final String ROLE_ELEMENT = "ROLE_ELEMENT";
    public static final String ROOT_NAME = "根节点";

    // 标签模板TAG
    public static final String TAG_TEMPLATE = "TEMPLATE";
    // 分类规则TAG
    public static final String TAG_CATEGORY = "CATEGORY";
    // 标签动态实体
    public static final String DYNAMIC_ENTITY = "DynamicEntity";
    // 当前jvm可用线程数
    public static final int CORES = Runtime.getRuntime().availableProcessors();
    public static final String WEBSOCKET_THREAD_NAME_PREFIX = "Web-Socket";
}
